#include "Com_Util.h"
#include "Dri_I2C.h"
#include "Int_EeProm.h"
#include "Int_DZP.h"

// code u8 picture_main[PICTURE_LENGTH] = {
//    0x00,0x3C,0x00,0x7E,0x24,0x24,0x24,0x66,0x00,
//    0x00,0x3E,0x22,0x3E,0x22,0x3E,0x00,0xFF,0x00,
//    0x12,0x7A,0x52,0x57,0xFE,0x12,0x32,0x4A,0x00,
//    0x78,0x28,0x28,0xFE,0x30,0x28,0x24,0x22,0x00
// };
code u8 picture_main[PICTURE_LENGTH] = {
   0x00,0x3C,0x00,0x7E,0x24,0x24,0x24,0x66,0x00,
   0x00,0x3E,0x22,0x3E,0x22,0x3E,0x00,0xFF,0x00
};


void main()
{
    u8 res_array[PICTURE_LENGTH];
    u8 ack;
    //     Delay_ms(500);
    //     // 添加数据到EEPROM中
    Delay_ms(6000);
    ack = Int_E2prom_WriteData_Array(0X00, picture_main, PICTURE_LENGTH);
    if (ack == 0) {
        P01 = 0;
    }

    Delay_ms(100);
    ack = Int_E2prom_ReadData_Array(0X00, res_array, PICTURE_LENGTH);
    if (ack == 0) {
        P02 = 0;
    }

    Int_DZP_Init();
    Int_DZP_AddData(res_array);

    while (1) {
    }
}
